package com.demo.jvm.structure.constant;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * CONSTANT_Methodref_info {
 * u1 tag;
 * u2 class_index;
 * u2 name_and_type_index;
 * }
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CONSTANT_Methodref_info extends CONSTANT_info {
    private int classIndex;
    private int nameAndTypeIndex;

    public CONSTANT_Methodref_info(byte tag, int tableIndex, int classIndex, int nameAndTypeIndex) {
        super(tag, tableIndex);
        this.classIndex = classIndex;
        this.nameAndTypeIndex = nameAndTypeIndex;
    }
}
